{% extends "adminbase.html" %}
{% block title %}NEU django OJ{% endblock %}
{% block middle %}
{% for contest in contests %}
<li><a href="{{contest.id}}" >{{contest.title}}</a>||start:{{contest.start|date:"Y-m-d H:i:s"}}|end:{{contest.end|date:"Y-m-d H:i:s"}}|owner:{{contest.admin.username}}||{% ifequal contest.isPublic 0 %}Public{% else %}{% ifequal contest.isPublic 1 %}password{% else %}private{% endifequal %}{% endifequal %}
<a href={{contest.id}}/edit >edit</a>
</li>
{% endfor %}

<br><br>
<a href=add >addcontest</a>
{% endblock %}
